package com.our.sys.project1.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.springside.modules.orm.grid.ViewField;

@Entity
@Table(name = "C_DamageAppDetail")
public class DamageAppDetail implements Serializable {

    private static final long serialVersionUID = -2526710843949270644L;
    @ViewField
    private Long id;
    @ViewField
    private Long consumId;
    @ViewField(header = "消耗品", width = 250, align = "left")
    private String consumName;
    @ViewField(header = "物品规格", width = 150, align = "left")
    private String spec;
    @ViewField(header = "数量", width = 150, align = "left")
    private BigDecimal amount;
    @ViewField(header = "单位", width = 150, align = "left")
    private String unit;
    @ViewField(header = "进价", width = 150, align = "left")
    private BigDecimal lastPrice;
    @ViewField(header = "进价金额", width = 150, align = "left")
    private BigDecimal money;

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "Id_Generator")
    @TableGenerator(name = "Id_Generator", table = "ID_GENERATOR", pkColumnName = "GEN_NAME", valueColumnName = "GEN_VAL", pkColumnValue = "C_DamageAppDetail")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getConsumId() {
        return consumId;
    }

    public void setConsumId(Long consumId) {
        this.consumId = consumId;
    }

    public String getConsumName() {
        return consumName;
    }

    public void setConsumName(String consumName) {
        this.consumName = consumName;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public BigDecimal getLastPrice() {
        return lastPrice;
    }

    public void setLastPrice(BigDecimal lastPrice) {
        this.lastPrice = lastPrice;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

}
